SRsrcInfo
SpBlockPtr spBlkPtr ; address of 56-byte Slot Parameter Block
structure
SRsrcInfo is most often used to return the driver reference number. spBlkPtr is the address of a 56-byte Slot Parameter Block structure.
The relevant fields are as follows:
Out-In Name Type Size Offset Description
¨ spsPointer Ptr 4 4 Structure pointer ¨ spIOReserved short 2 36 Reserved field of Slot Resource Table
¨ spRefNum short 2 38 Slot Resource Table reference number
¨ spCategory short 2 40 sResource type: Category
¨ spCType short 2 42 sResource type: Type
¨ spDrvrSW short 2 44 sResource type: Driver software identifier
¨ spDrvrHW short 2 46 sResource type: Driver hardware identifier
Æ spSlot char 1 49 Slot number
Æ spID char 1 50 sResource list ID
Æ spExtDev char 1 41 External device identifier
¨ spHwDev char 1 52 Hardware device identifier
noErr (0) No error
smEmptySlot (-300) No card in slot.
smCRCFail (-301) CRC check failed.
smFormatErr (-302) FHeader format is not Apple's.
smRevisionErr (-303) The revision of the card's declaration ROM is wrong.
smNoDir (-304) Directory offset is NIL.
smNosInfoArray (-306) The SDM could not allocate memory for the sInfo
array.
smResrvErr (-307) A reserved field of the declaration ROM was used.
smUnExBusErr (-308) An unexpected bus error occurred.
smBLFieldBad (-309) A valid ByteLanes field was not found.
smDisposePErr (-312) An error occurred during execution of DisposPointer.
smNoBoardsRsrc (-313) There is no board sResource.
smGetPRErr (-314) Error during execution of sGetPRAMRec.
smNoBoardId (-315) There is no board ID.
smInitStatVErr (-316) The InitStatus_V field was negative after Primary or
Secondary Init.
smInitTblVErr (-317) Error while trying to initialize the sResource Table.
smNoJmpTbl (-318) Slot Manager jump table could not be created
smBadBoardId (-319) Board ID was wrong; reinit the PRAM record
Notes: SRsrcInfo returns an sResource list pointer ( spsPointer), plus the sResource type (category, cType, software, and hardware), driver
reference number (spRefNum), and Slot Resource Table ioReserved field
(spIOReserved) for the sResource specified by the slot number spSlot,
sResource list identification number spID, and external device identifier